package com.atguigu.gmall.pms.vo;

import com.atguigu.gmall.pms.entity.SkuAttrValueEntity;
import com.atguigu.gmall.pms.entity.SkuEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author jinhui
 * @create 2021-08-03 19:32
 */
@Data
public class SkuVo extends SkuEntity {

    //SkuBoundsEntity积分优惠相关信息
    private BigDecimal growBounds;//成长积分
    private BigDecimal buyBounds;//购物积分
    private List<Integer> work;//优惠生效情况[1111（四个状态位，从右到左）;0 - 无优惠，成长积分是否赠送;1 - 无优惠，购物积分是否赠送;2 - 有优惠，成长积分是否赠送;3 - 有优惠，购物积分是否赠送【状态位0：不赠送，1：赠送】]

    //SkuLadderEntity打折优惠信息
    private Integer fullCount;//满几件
    private BigDecimal discount;//打几折
    private Integer fullAddOther;//是否叠加其他优惠[0-不可叠加，1-可叠加]

    //SkuFullReduction满减优惠信息
    private BigDecimal fullPrice;//满多少
    private BigDecimal reducePrice;//减多少
    private Integer ladderAddOther;//是否参与其他优惠

    //sku图片列表
    private List<String> images;

    //销售属性及值
    private List<SkuAttrValueEntity> saleAttrs;
}


   /* private List<SkuAttrValueEntity> saleAttrs;

    private List<String> images;

    private Integer fullCount;
    private BigDecimal discount;


    private Integer fullAddOther;

    //成长积分
    private BigDecimal growBounds;


    private BigDecimal buyBounds;


    private Integer work;

    private BigDecimal fullPrice;


    private BigDecimal reducePrice;


    private Integer ladderAddOther;


}*/
